<template>
  <div>
    <h1>自定义插件测试</h1>
    <button @click="showSuccess">显示成功消息</button>
    <button @click="showError">显示失败消息</button>
  </div>
</template>

<script>
export default {
  methods: {
    showSuccess() {
      this.$message.success("登陆成功!", 1000);
    },
    showError() {
      this.$message.error("用户名或密码无效!", 3000);
    },
  },
};
</script>

<style lang="stylus" scoped></style>
